<script setup lang="ts">
import instance from '@/utils/request'
import { onMounted } from 'vue'
import { useHomeStore } from './store'

const home = useHomeStore()

onMounted(async () => {
  const res = await instance.request({
    url: '/home/index',
    method: 'get',
  })
  console.log('res -----> ', res)
  console.log(`output->home.money`, home.money)
})
</script>

<template>
  <router-view></router-view>
  <!-- <button><router-link to="/login">登录</router-link></button>
  <button><router-link to="/">首页</router-link></button> -->
</template>
<style lang="less" scoped>
h1 {
  color: @xtxColor;
  .hoverShadow ();
}
</style>
